/**
 *Create time: 2023-05-13 00:41
 *Author: Andy
 *Description:
 */
package com.andy.nature.utils

import android.content.ComponentName
import android.content.Context
import android.content.Intent

object ActivityUtils {
    fun backForeground(context: Context) {
        val intent = Intent(Intent.ACTION_MAIN)
        intent.action = Intent.ACTION_MAIN
        intent.component = ComponentName("com.andy.nature", "com.andy.nature.ui.activity.RecruitActivity")
        intent.addCategory(Intent.CATEGORY_LAUNCHER)
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
        context.startActivity(intent)
    }
}